package com.aloaproject.ciquta;

/**
 * Apply a not to a given criteria.
 * @author Daniele Demichelis
 */
class NotCriterion implements Criterion {
    
    private Criterion criterion;

    NotCriterion(Criterion criterion) {
        this.criterion = criterion;
    }

    public boolean match(Object object) {
        return !criterion.match(object);
    }

}
